//
//  MusicSheetRegion.m
//  MusicAnalyzer
//
//  Created by jiro on 12/04/08.
//  Copyright 2012 jiro music. All rights reserved.
//

#import "MusicSheetRegion.h"

@implementation MusicSheetRegion

@synthesize fiveLinesRegions;

- (id) init
{
	self = [ super init ];
	if ( self == nil )
	{
		return nil;
	}
	fiveLinesRegions = [ NSMutableArray array ];
	return self;
}

- (void) addFiveLinesRegionWithClef: (ClefType) clefType
{
	FiveLinesRegion* fiveLinesRegion = [ [ FiveLinesRegion alloc ] initWithClef: clefType ];
	[ fiveLinesRegions addObject: fiveLinesRegion ];
}

- (int) fiveLinesCount
{
	return [ fiveLinesRegions count ];
}

- (FiveLinesRegion*) fiveLinesRegionAtIndexOf:(int) index
{
	return [ fiveLinesRegions objectAtIndex: index ];
}

@end
